package com.yvan.codeslave.action;

import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.ui.Messages;
import com.yvan.codeslave.PluginUtils;
import lombok.val;

public class BuildModuleAction extends AnAction {

    public BuildModuleAction() {
        super("构建 module.xml");
    }

    @Override
    public void actionPerformed(AnActionEvent e) {

        val jwBuild = PluginUtils.getSelectStructs();

        Messages.showMessageDialog(
                e.getProject(),
                jwBuild.toYaml(),
                "提示",
                Messages.getInformationIcon()
        );
    }
}
